<?php include "conn.php";?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo $SiteTitle;?></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> -->
    <meta name="keywords" content="<?php echo $SiteKeywords;?> ">
    <meta name="description" content="<?php echo $SiteDescription;?> " />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <?php include "public/cssjs.php";?>
</head>
<body>
<?php include "public/top.php";?>

<section id="swiper1" class="swiper">
    <div class="swiper-container ">
        <div class="swiper-wrapper">
            <?php
            $connt = new Mysql();
            $rs = $connt->getRow("select * from lunbo");
            if($rs["a1_img"]!=""){ echo '<div class="swiper-slide"><img src="pic/'.$rs["a1_img"].'" alt="" class="img-fluid"></div>';}
            if($rs["a2_img"]!=""){ echo '<div class="swiper-slide"><img src="pic/'.$rs["a2_img"].'" alt="" class="img-fluid"></div>';}
            if($rs["a3_img"]!=""){ echo '<div class="swiper-slide"><img src="pic/'.$rs["a3_img"].'" alt="" class="img-fluid"></div>';}
            if($rs["a4_img"]!=""){ echo '<div class="swiper-slide"><img src="pic/'.$rs["a4_img"].'" alt="" class="img-fluid"></div>';}
            if($rs["a5_img"]!=""){ echo '<div class="swiper-slide"><img src="pic/'.$rs["a5_img"].'" alt="" class="img-fluid"></div>';}
            ?>
        </div>
        <!-- 如果需要分页器 -->
        <div class="swiper-pagination"></div>
        <!-- 如果需要滚动条 -->
    </div>
</section>
<!--  -->
<div class="home-m home-specialOffer">
    <div class="container">
        <div class="home-heading">
            <div class="home-title"><span>限时特价</span></div>
        </div>
        <div class="home-body">
            <section class="swiper2">
                <div class="swiper-container">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img2.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img3.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img1.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img2.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img3.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img1.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img2.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img3.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="swiper-slide ">
                            <div class="specialOffer-item " style="background:#F4F4F4 url(images/home-SpecialOffer-img1.jpg) 0 0 no-repeat;">
                                <div class="text-block">
                                    <div class="hvr-float">
                                        <p>你好，生活！</p>
                                        <p>2019秋季新品</p>
                                        <a href="javascript:;" class="more">点击查看></a>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
                <!-- 添加箭头 -->
                <div class="swiper-button-next"></div>
                <div class="swiper-button-prev"></div>

            </section>
        </div>
    </div>
</div>
<!--  -->
<!--  -->
<div class="home-m home-someProducts">
    <div class="container">
        <div class="home-heading">
            <div class="home-title"><span>精选优品</span></div>
            <div class="home-subtitle"><span class="active">布艺沙发</span>-<span>软装摆饰</span>-<span>日系木制</span></div>
        </div>
        <div class="home-body">
            <div class="row">
                <?php
                $connp=new Mysql();
                $sql="select * from products where is_hot=1 order by px desc limit 8";
                $row=$connp->getAll($sql);
                foreach($row as $k3=>$rsp){

                    ?>
                    <div class=" col-md-6 col-xl-3 mb-4">
                        <div class="home-someProducts-item">
                            <div class="label"><strong><?php echo $rsp["objects"];?></strong></div>
                            <div class="home-someProducts-img"><a href="detail.php?id=<?php echo $rsp["id"]?>"><img class="hvr-grow" src="/pic/<?php echo $rsp["pic"];?>" alt="<?php echo $rsp["title"];?>"></a>
                                <div class="home-someProducts-action"><a href="detail.php?id=<?php echo $rsp["id"]?>">加入购物车 <i class="iconfont icon-gouwuche"></i></a></div>
                            </div>

                            <div class="home-someProducts-caption">
                                <div class="home-someProducts-title"><?php echo $rsp["title"];?></div>
                                <div class="home-someProducts-rating"><?php echo $rsp["styles"];?></div>
                                <div class="home-someProducts-price"><small>¥<?php echo $rsp["ys_s_price"];?></small>¥<?php echo $rsp["ys_e_price"];?></div>
                            </div>
                        </div>
                    </div>

                    <?php
                }
                ?>


            </div>
        </div>
    </div>
</div>
<!--  -->
<div class="home-m home-specialOffer">
    <div class="container">
        <div class="row">
            <div class="col-lg mb-4">
                <div class="home-specialOffer-item" >

                    <img class="w-100 " src="/pic/<?php echo Request_fildes("adpic","ads"," id=46");?>" alt="<?php echo Request_fildes("title_f","ads"," id=46");?>">
                    <div class="text-block">
                        <p class="text"><?php echo Request_fildes("title","ads"," id=46");?></p>
                        <p class="desc"><?php echo Request_fildes("title_f","ads"," id=46");?></p>
                        <p><a href="<?php echo Request_fildes("urls","ads"," id=46");?>" class="more">点击查看></a></p>
                    </div>
                </div>
            </div>
            <div class="col-lg mb-4">
                <div class="home-specialOffer-item" >

                    <img class="w-100 " src="/pic/<?php echo Request_fildes("adpic","ads"," id=59");?>" alt="<?php echo Request_fildes("title_f","ads"," id=59");?>">
                    <div class="text-block">
                        <p class="text"><?php echo Request_fildes("title","ads"," id=59");?></p>
                        <p class="desc"><?php echo Request_fildes("title_f","ads"," id=59");?></p>
                        <p><a href="<?php echo Request_fildes("urls","ads"," id=59");?>" class="more">点击查看></a></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--  -->
<div class="home-m home-groupBuying">
    <div class="container">
        <div class="home-heading">
            <div class="home-title"><span>团购</span></div>
        </div>
        <div class="home-body">
            <div class="row">
                <div class="col-md-6 col-xl-3 mb-4">
                    <a href="#">
                        <div class="home-someProducts-item">
                            <div class="label"><i class="iconfont icon-touxiang"></i>434</div>
                            <div class="home-someProducts-img"><a href="#"><img class="hvr-grow" src="images/someProducts-img2.jpg"></a>
                                <div class="home-someProducts-action"><a href="#">加入购物车 <i class="iconfont icon-gouwuche"></i></a></div>
                            </div>
                            <div class="home-someProducts-caption">
                                <div class="home-someProducts-title">HEMNES 汉尼斯 床品四件套</div>
                                <div class="home-someProducts-rating">★★☆☆☆</div>
                                <div class="home-someProducts-price"><small>¥400.00</small>¥200.00</div>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-md-6 col-xl-3 mb-4">
                    <a href="#">
                        <div class="home-someProducts-item">
                            <div class="label"><i class="iconfont icon-touxiang"></i>434</div>
                            <div class="home-someProducts-img"><a href="#"><img class="hvr-grow" src="images/someProducts-img3.jpg"></a>
                                <div class="home-someProducts-action"><a href="#">加入购物车 <i class="iconfont icon-gouwuche"></i></a></div>
                            </div>
                            <div class="home-someProducts-caption">
                                <div class="home-someProducts-title">HEMNES 汉尼斯 床品四件套</div>
                                <div class="home-someProducts-rating">★★☆☆☆</div>
                                <div class="home-someProducts-price"><small>¥400.00</small>¥200.00</div>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-md-6 col-xl-3 mb-4">
                    <a href="#">
                        <div class="home-someProducts-item">
                            <div class="label"><i class="iconfont icon-touxiang"></i>434</div>
                            <div class="home-someProducts-img"><a href="#"><img class="hvr-grow" src="images/someProducts-img4.jpg"></a>
                                <div class="home-someProducts-action"><a href="#">加入购物车 <i class="iconfont icon-gouwuche"></i></a></div>
                            </div>
                            <div class="home-someProducts-caption">
                                <div class="home-someProducts-title">HEMNES 汉尼斯 床品四件套</div>
                                <div class="home-someProducts-rating">★★☆☆☆</div>
                                <div class="home-someProducts-price"><small>¥400.00</small>¥200.00</div>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-md-6 col-xl-3 mb-4">
                    <a href="#">
                        <div class="home-someProducts-item">
                            <div class="label"><i class="iconfont icon-touxiang"></i>434</div>
                            <div class="home-someProducts-img"><a href="#"><img class="hvr-grow" src="images/someProducts-img5.jpg"></a>
                                <div class="home-someProducts-action"><a href="#">加入购物车 <i class="iconfont icon-gouwuche"></i></a></div>
                            </div>
                            <div class="home-someProducts-caption">
                                <div class="home-someProducts-title">HEMNES 汉尼斯 床品四件套</div>
                                <div class="home-someProducts-rating">★★☆☆☆</div>
                                <div class="home-someProducts-price"><small>¥400.00</small>¥200.00</div>
                            </div>
                        </div>
                    </a>
                </div>

            </div>
        </div>
    </div>
</div>
<!--  -->
<div class="home-m home-news">
    <div class="container">
        <div class="home-heading">
            <div class="home-title"><span>最新资讯</span></div>
        </div>
        <div class="home-body">
            <div class="row">
                <?php
                $connp=new Mysql();
                $sql="select * from news_shop where is_hot=1 and type=1 order by adate desc limit 3";
                $row=$connp->getAll($sql);
                foreach($row as $k3=>$rsp) {

                    ?>
                    <div class="col-lg mb-4">
                        <a href="view.php?id=<?php echo $rsp["id"];?>">
                            <div class="home-news-item row">
                                <div class="img  col-sm-5  col-lg-auto"><img class="w-100 hvr-grow" class="hvr-grow " src="/pic/<?php echo $rsp["pic"];?>" alt="<?php echo $rsp["title"];?>"></div>
                                <div class="text-block col-sm  col-lg-auto">
                                    <div class="title mt-2 mt-sm-0 mt-lg-3"><?php echo $rsp["title"];?></div>
                                    <div class="date"><?php echo $rsp["author"];?> <?php echo date("Y-m-d",strtotime($rsp["adate"]));?></div>
                                    <div class="desc"><?php echo killword($rsp["title_f"],70);?></div>
                                </div>
                            </div>
                        </a>
                    </div>
                    <?php
                }
                ?>


            </div>
        </div>
    </div>
</div>
<!--  -->


<?php include "public/footer.php";?>
<?php include "public/bottom.php";?>
</body>

</html>